<?php


namespace app\common\model;


use think\Model;

class Merchant extends Model
{
    protected $pk='merid';

    function category(){
        return $this->hasOne('Category','cid','cate_id')->bind('title');
    }
}